package com.loan.system.service;

import com.loan.common.core.domain.PageQuery;
import com.loan.common.core.domain.Result;
import com.loan.common.core.page.TableDataInfo;
import com.loan.system.domain.CompanyEntity;
import com.loan.system.domain.req.CompanyReq;

import java.util.List;

/**
 * @author shiguang on 2022/9/5 10:50
 */
public interface CompanyService {

    TableDataInfo<CompanyEntity> selectPageCompanyList(CompanyEntity companyEntity, PageQuery pageQuery);

    String checkNameUnique(CompanyEntity company);

    int insertCompany(CompanyReq company);

    CompanyEntity selectCompanyById(Long id);

    int addCompany(CompanyEntity entity);

    int updateCompany(CompanyEntity entity);

    int deleteCompanyById(Long id);

    int updateStatus(CompanyEntity entity);

    List<CompanyEntity> selectList();

    CompanyEntity getDetail();
}
